package com.lesso.cyg.sunflower.app.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.cyg.sunflower.domain.service.EmployeeDeviceRelDomainService;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeDeviceRelDTO;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeDeviceRelQueryDTO;
import com.lesso.cyg.sunflower.service.IEmployeeDeviceRelService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * EmployeeDeviceRelServiceImpl
 *
 * @author cyg
 * @since 2025-07-02
 */
@Service
@DubboService
public class EmployeeDeviceRelServiceImpl implements IEmployeeDeviceRelService {
    private final EmployeeDeviceRelDomainService employeeDeviceRelDomainService;

    public EmployeeDeviceRelServiceImpl(EmployeeDeviceRelDomainService employeeDeviceRelDomainService) {
        this.employeeDeviceRelDomainService = employeeDeviceRelDomainService;
    }

    @Override
    public Integer save(EmployeeDeviceRelDTO dto) {
        return employeeDeviceRelDomainService.save(dto);
    }

    @Override
    public void deleteById(Long id) {
        employeeDeviceRelDomainService.deleteById(id);
    }

    @Override
    public Integer update(EmployeeDeviceRelDTO dto) {
        return employeeDeviceRelDomainService.update(dto);
    }

    @Override
    public Page<EmployeeDeviceRelDTO> page(EmployeeDeviceRelQueryDTO dto) {
        return employeeDeviceRelDomainService.page(dto);
    }
}